//刷新验证码
function refreshCode(){
	var src=$("#authCodeImg").attr("src")+"?d="+ new Date().valueOf();
	$("#authCodeImg").attr("src", src);
}

//防止resize卡死解决方法
var resizeTimer = null;
window.onresize = function() {
	if (resizeTimer) {
		clearTimeout(resizeTimer);
	}
	resizeTimer = setTimeout(function() {
		$(".left_slim").css("height",$(window).height()-45);
		$(".right_slim").css("width",$(window).width()-190);
	}, 400);
}; 
$(function() {
	$(".left_slim,.right_slim").css("height",$(window).height()-45);
	$(".right_slim").css("width",$(window).width()-190);
	$("#menu").slimScroll({
		height : '100%',//可滚动区域高度
		size:'2px'
	});
});